package com.jt.permission.model;

import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;
import java.io.Serializable;
import java.util.Date;

@Table(name = "t_sys_role")
@Getter
@Setter
public class Role implements Serializable {
  @Id
  @Column(name = "role_id")
  private Long roleId;

  /** 角色名称 */
  @Column(name = "role_name")
  private String roleName;

  /** 备注 */
  private String remark;

  /** 创建时间 */
  @Column(name = "create_time")
  private Date createTime;

  @Transient private Integer hasOwn = 0;
}
